package com.qf.mybatis.dao;

import com.qf.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper {
    //根据id查找用户
    User selectUserById(Integer id);
    //模糊查询 根据id和密码查询用户
    User serlectUserByNameAndPwd(@Param("name") String name,@Param("password") String pwd);
    //模糊查询 根据id和密码查询用户
    User serlectUserByNameAndPwdWithMap(Map<String,String> map);
    //模糊查询 根据id和密码查询用户,传递user类型的参数
    User serlectUserByNameAndPwdWithUser(User user);
    // 根据用户名字模糊查询用户
    User selectUserByName(String name);
}

